package com.lcq.demo.common.converter;

import com.lcq.demo.entity.dto.ProductDTO;
import com.lcq.demo.entity.po.Product;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author 240701005
 */
@Mapper
public interface ProductPOConverter {

    ProductPOConverter INSTANCE = Mappers.getMapper(ProductPOConverter.class);

    ProductDTO convertPoToDto(Product product);

    List<ProductDTO> convertPoToDto(List<Product> productList);

}
